<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.ListUserinfotableTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
        <h:form styleClass="jsfcrud_list_form">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:outputText escape="false" value="#{bundle.ListUserinfotableEmpty}" rendered="#{userinfotableController.items.rowCount == 0}"/>
            <h:panelGroup rendered="#{userinfotableController.items.rowCount > 0}">
                <h:outputText value="#{userinfotableController.pagination.pageFirstItem + 1}..#{userinfotableController.pagination.pageLastItem + 1}/#{userinfotableController.pagination.itemsCount}"/>&nbsp;
                <h:commandLink action="#{userinfotableController.previous}" value="#{bundle.Previous} #{userinfotableController.pagination.pageSize}" rendered="#{userinfotableController.pagination.hasPreviousPage}"/>&nbsp;
                <h:commandLink action="#{userinfotableController.next}" value="#{bundle.Next} #{userinfotableController.pagination.pageSize}" rendered="#{userinfotableController.pagination.hasNextPage}"/>&nbsp;
                <h:dataTable value="#{userinfotableController.items}" var="item" border="0" cellpadding="2" cellspacing="0" rowClasses="jsfcrud_odd_row,jsfcrud_even_row" rules="all" style="border:solid 1px">
                    <h:column>
                        <f:facet name="header">
                            <h:outputText value="#{bundle.ListUserinfotableTitle_userid}"/>
                        </f:facet>
                        <h:outputText value="#{item.userid}"/>
                    </h:column>
                    <h:column>
                        <f:facet name="header">
                            <h:outputText value="#{bundle.ListUserinfotableTitle_firstname}"/>
                        </f:facet>
                        <h:outputText value="#{item.firstname}"/>
                    </h:column>
                    <h:column>
                        <f:facet name="header">
                            <h:outputText value="#{bundle.ListUserinfotableTitle_lastname}"/>
                        </f:facet>
                        <h:outputText value="#{item.lastname}"/>
                    </h:column>
                    <h:column>
                        <f:facet name="header">
                            <h:outputText value="#{bundle.ListUserinfotableTitle_email}"/>
                        </f:facet>
                        <h:outputText value="#{item.email}"/>
                    </h:column>
                    <h:column>
                        <f:facet name="header">
                            <h:outputText value="#{bundle.ListUserinfotableTitle_id}"/>
                        </f:facet>
                        <h:outputText value="#{item.id}"/>
                    </h:column>
                    <h:column>
                        <f:facet name="header">
                            <h:outputText value="&nbsp;"/>
                        </f:facet>
                        <h:commandLink action="#{userinfotableController.prepareView}" value="#{bundle.ListUserinfotableViewLink}"/>
                        <h:outputText value=" "/>
                        <h:commandLink action="#{userinfotableController.prepareEdit}" value="#{bundle.ListUserinfotableEditLink}"/>
                        <h:outputText value=" "/>
                        <h:commandLink action="#{userinfotableController.destroy}" value="#{bundle.ListUserinfotableDestroyLink}"/>
                    </h:column>
                </h:dataTable>
            </h:panelGroup>
            <br />
            <h:commandLink action="#{userinfotableController.prepareCreate}" value="#{bundle.ListUserinfotableCreateLink}"/>
            <br />
            <br />
            <h:commandLink value="#{bundle.ListUserinfotableIndexLink}" action="/index" immediate="true" />
        </h:form>
        </ui:define>
    </ui:composition>

</html>
